package com.atguigu.jedis.demos;

import redis.clients.jedis.Jedis;

/**
 * Created by Smexy on 2022/7/9
 */
public class JedisDemo1 {

    public static void main(String[] args) {

        //创建客户端对象
        Jedis jedis = new Jedis("hadoop102", 6379);
        //使用
        String res = jedis.ping();

        System.out.println(res);

        //关闭客户端
        jedis.close();

    }
}
